﻿using AttributeRouting.Web.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Water.Model;

namespace Water.RestService.Controllers
{
    public class TagInitializeController : ApiController
    {
        private TagInitialize tagi;

        [POST("AddTagAndDevice")]
        public bool PostAddTagAndDevice(TagInitialize ti)
        {
            tagi = new TagInitialize();
            return tagi.AddTagAndDevice(ti) > 0 ? true : false;
        }
    }
}
